package sv.gob.mh.dgii.model;
/**
 * <b>Created by </b>mirday
 * <b>for</b>jsiit-model
 * <b>on</b> March 5, 2012 07:35:22 AM
 * <b>Purpose</b> 
 * <p>
 * </p>
 */

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "PT_MAQUINA", schema = "PETICIONES")

public class PtMaquina implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Long idmaquina;
	private Long idescrito;
	private String nmaquina;
	private String cmarca;
	private String cmodelo;
	private String sserie;
	private String ctramite;
	private Long ircdomictramite;
	private Long ircdomicnuevo;
	private Date fdesde;
	private Date fhasta;
	private Long idescritomod;
	private Long bactiva;
	private Date fhmodificacion;
	private String cusuariomod;
	private Date fhingreso;
	private String cusuario;
	private String nfolio;
	
	private String nfolioautoriza;
	private Date ffolioautoriza;
	private String nfolioulttrasl;
	private Date ffolioulttrasl;
	private String ssoftware;
	private String cmodalidad;
	private String bcintaelectrica;
	private String bdocumpreimp;
	private String bservidor;
	
	
	

	
	public PtMaquina() {
	}
	
	public PtMaquina (Long idmaquina, Long idescrito, String nmaquina, String cmarca,
			 String cmodelo, String sserie, String ctramite, Long ircdomictramite,
			 Long bactiva, Date fhingreso, String cusuario ){
				this.idmaquina = idmaquina ;
				this.idescrito = idescrito;
				this.nmaquina = nmaquina;
				this.cmarca = cmarca;
				this.cmodelo = cmodelo;
				this.sserie = sserie;
				this.ctramite = ctramite;
				this.ircdomictramite = ircdomictramite;
				this.bactiva = bactiva;
				this.fhingreso = fhingreso;
				this.cusuario = cusuario;		
				}		
	
	public PtMaquina(	 Long idmaquina, Long idescrito, String nmaquina, String cmarca,
	 String cmodelo, String sserie, String ctramite, Long ircdomictramite,
	 Long ircdomicnuevo, Date fdesde, Date fhasta, Long idescritomod,
	 Long bactiva, Date fhmodificacion, String cusuariomod, Date fhingreso, String cusuario ){
		this.idmaquina = idmaquina ;
		this.idescrito = idescrito;
		this.nmaquina = nmaquina;
		this.cmarca = cmarca;
		this.cmodelo = cmodelo;
		this.sserie = sserie;
		this.ctramite = ctramite;
		this.ircdomictramite = ircdomictramite;
		this.ircdomicnuevo = ircdomicnuevo;
		this.fdesde = fdesde;
		this.fhasta = fhasta;
		this.idescritomod = idescritomod;
		this.bactiva = bactiva;
		this.fhmodificacion = fhmodificacion;
		this.cusuariomod = cusuariomod;
		this.fhingreso = fhingreso;
		this.cusuario = cusuario;		
		}	

	@Id
	@Column(name = "ID_MAQUINA", unique = true, nullable = false, insertable = true, updatable = true, precision = 10, scale = 0)
	public Long getIdmaquina() {
		return idmaquina;
	}
	public void setIdmaquina(Long idmaquina) {
		this.idmaquina = idmaquina;
	}


	@Column(name = "ID_ESCRITO", precision = 10, scale = 0)
	public Long getIdescrito() {
		return idescrito;
	}
	public void setIdescrito(Long idescrito) {
		this.idescrito = idescrito;
	}

	@Column(name = "N_MAQUINA", unique = false, nullable = false, insertable = true, updatable = true, length = 15)
	public String getNmaquina() {
		return nmaquina;
	}
	public void setNmaquina(String nmaquina) {
		this.nmaquina = nmaquina;
	}	
	
	@Column(name = "C_MARCA", unique = false, nullable = false, insertable = true, updatable = true, length = 2)
	public String getCmarca() {
		return cmarca;
	}
	public void setCmarca(String cmarca) {
		this.cmarca = cmarca;	
	}

	@Column(name = "C_MODELO", unique = false, nullable = false, insertable = true, updatable = true, length = 2)
	public String getCmodelo() {
		return cmodelo;
	}
	public void setCmodelo(String cmodelo) {
		this.cmodelo = cmodelo;	
	}
	
	@Column(name = "S_SERIE", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getSserie() {
		return sserie;
	}
	public void setSserie(String sserie) {
		this.sserie = sserie;
	}
	
	@Column(name = "C_TRAMITE", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getCtramite() {
		return ctramite;
	}
	public void setCtramite(String ctramite) {
		this.ctramite = ctramite;
	}
	
	@Column(name = "I_RC_DOMIC_TRAMITE", precision = 10, scale = 0)
	public Long getIrcdomictramite() {
		return ircdomictramite;
	}
	public void setIrcdomictramite(Long ircdomictramite) {
		this.ircdomictramite = ircdomictramite;
	}

	@Column(name = "I_RC_DOMIC_NUEVO", precision = 10, scale = 0)
	public Long getIrcdomicnuevo() {
		return ircdomicnuevo;
	}
	public void setIrcdomicnuevo(Long ircdomicnuevo) {
		this.ircdomicnuevo = ircdomicnuevo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "F_DESDE", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFdesde() {
		return this.fdesde;
	}
	public void setFdesde(Date fdesde) {	
		this.fdesde = fdesde;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "F_HASTA", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhasta() {
		return this.fhasta;
	}
	public void setFhasta(Date fhasta) {	
		this.fhasta = fhasta;
	}		
	
	@Column(name = "ID_ESCRITO_MOD", precision = 6, scale = 0)
	public Long getIdescritomod() {
		return idescritomod;
	}
	public void setIdescritomod(Long idescritomod) {
		this.idescritomod = idescritomod;
	}

	@Column(name = "B_ACTIVA", precision = 1, scale = 0)
	public Long getBactiva() {
		return this.bactiva;
	}
	public void setBactiva(Long bactiva) {
		this.bactiva = bactiva;
	}		
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_MODIFICACION", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhmodificacion() {
		return fhmodificacion;
	}
	public void setFhmodificacion(Date fhmodificacion) {
		this.fhmodificacion = fhmodificacion;
	}

	@Column(name = "C_USUARIO_MOD", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public String getCusuariomod() {
		return cusuariomod;
	}
	public void setCusuariomod(String cusuariomod) {
		this.cusuariomod = cusuariomod;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
	public Date getFhingreso() {
		return fhingreso;
	}
	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "C_USUARIO", unique = false, nullable = false, insertable = true, updatable = true, length = 30)
	public String getCusuario() {
		return cusuario;
	}
	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Column(name = "N_FOLIO", unique = false, nullable = true, insertable = true, updatable = true, length = 17)
	public String getNfolio() {
		return nfolio;
	}
	public void setNfolio(String nfolio) {
		this.nfolio = nfolio;
	}
	
	@Column(name = "N_FOLIO_AUTORIZA", unique = false, nullable = true, insertable = true, updatable = true, length = 17)
	public String getNfolioautoriza() {
		return nfolioautoriza;
	}
	public void setNfolioautoriza(String nfolioautoriza) {
		this.nfolioautoriza = nfolioautoriza;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "F_FOLIO_AUTORIZA", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFfolioautoriza() {
		return ffolioautoriza;
	}
	public void setFfolioautoriza(Date ffolioautoriza) {
		this.ffolioautoriza = ffolioautoriza;
	}

	@Column(name = "N_FOLIO_ULT_TRASL", unique = false, nullable = true, insertable = true, updatable = true, length = 17)
	public String getNfolioulttrasl() {
		return nfolioulttrasl;
	}
	public void setNfolioulttrasl(String nfolioulttrasl) {
		this.nfolioulttrasl = nfolioulttrasl;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "F_FOLIO_ULT_TRASL", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFfolioulttrasl() {
		return ffolioulttrasl;
	}
	public void setFfolioulttrasl(Date ffolioulttrasl) {
		this.ffolioulttrasl = ffolioulttrasl;
	}

	@Column(name = "S_SOFTWARE", unique = false, nullable = true, insertable = true, updatable = true, length = 32)
	public String getSsoftware() {
		return ssoftware;
	}
	public void setSsoftware(String ssoftware) {
		this.ssoftware = ssoftware;
	}

	@Column(name = "C_MODALIDAD", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public String getCmodalidad() {
		return cmodalidad;
	}
	public void setCmodalidad(String cmodalidad) {
		this.cmodalidad = cmodalidad;
	}

	@Column(name = "B_CINTA_ELECTRICA", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public String getBcintaelectrica() {
		return bcintaelectrica;
	}
	public void setBcintaelectrica(String bcintaelectrica) {
		this.bcintaelectrica = bcintaelectrica;
	}

	@Column(name = "B_DOCUM_PREIMP", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public String getBdocumpreimp() {
		return bdocumpreimp;
	}
	public void setBdocumpreimp(String bdocumpreimp) {
		this.bdocumpreimp = bdocumpreimp;
	}

	@Column(name = "B_SERVIDOR", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public String getBservidor() {
		return bservidor;
	}
	public void setBservidor(String bservidor) {
		this.bservidor = bservidor;
	}
	
}
